<template>
  <div style="height: 100%">
    <div id="map" class="eguid-map"></div>
    <!-- <div class="text">111</div> -->
  </div>
</template>

<script>
import { initMap,panTo, singleClickFun } from "./js/staticPictureMap";
export default {
  name: "static",
  components: {},
  data() {
    return {};
  },
  mounted() {
   
    initMap('map');
    singleClickFun((e) => {
      // setCenter(e.coordinate[0], e.coordinate[1]);
      const point = [e.coordinate[0], e.coordinate[1]];
      panTo(point); //地图平移到指定位置
    });
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
@import "./mapView.scss";
</style>
